from django.urls import path, include
from rest_framework.routers import DefaultRouter
from . import views

router = DefaultRouter()
router.register(r'environments', views.EnvironmentViewSet)
router.register(r'host-types', views.HostTypeViewSet)
router.register(r'host-groups', views.HostGroupViewSet)
router.register(r'hosts', views.HostViewSet)
router.register(r'host-monitor-data', views.HostMonitorDataViewSet)
# database-instances 和 sql-audit-logs 已移动到 sql_management 应用中

urlpatterns = [
    path('', include(router.urls)),
    path('dashboard/stats/', views.dashboard_stats, name='dashboard_stats'),
]
